import api from '../utils/api';

export async function downLoadEXL(param) {
  return api.post('/asset/downLoadEXL', {
    data: JSON.stringify(param),
  });
}

export async function queryList(param) {
  return api.post('/asset/queryAssetList', {
    data: JSON.stringify(param),
  });
}

export async function qryAttrValue(param) {
  return api.post('/asset/attrValue/qryAttrValue', {
    data: JSON.stringify(param),
  });
}

export async function edit(param) {
  return api.post('/asset/edit', {
    data: JSON.stringify(param),
  });
}

export async function qryById(param) {
  return api.post('/asset/qryDetailById', {
    data: JSON.stringify(param),
  });
}

export async function checkSerialNo(param) {
  return api.post('/asset/checkSerialNo', {
    data: JSON.stringify(param),
  });
}

export async function onLight(param) {
  return api.post('/asset/onLightJd', {
    data: JSON.stringify(param),
  });
}

export async function cancleLight(param) {
  return api.post('/asset/cancleLightJd', {
    data: JSON.stringify(param),
  });
}
